/**
 * Copyright &copy; 2012-2016 <a href="https://git.oschina.net/zdw2016/webbase5">Webbase</a> All rights reserved.
 */
package com.foreveross.webbase.bookdemo.entity;

import org.hibernate.validator.constraints.Length;

import com.foreveross.webbase.common.persistence.DataEntity;

/**
 * 服务器管理Entity
 * @author yangwanli
 * @version 2017-03-13
 */
public class SysServlet extends DataEntity<SysServlet> {
	
	private static final long serialVersionUID = 1L;
	private String servletName;		// 服务器名称
	private String servletIp;		// 服务器IP
	private String servletUser;		// 服务器用户名
	private String servletPassword;		// 服务器密码
	
	public SysServlet() {
		super();
	}

	public SysServlet(String id){
		super(id);
	}

	@Length(min=1, max=255, message="服务器名称长度必须介于 1 和 255 之间")
	public String getServletName() {
		return servletName;
	}

	public void setServletName(String servletName) {
		this.servletName = servletName;
	}
	
	@Length(min=1, max=255, message="服务器IP长度必须介于 1 和 255 之间")
	public String getServletIp() {
		return servletIp;
	}

	public void setServletIp(String servletIp) {
		this.servletIp = servletIp;
	}
	
	@Length(min=1, max=255, message="服务器用户名长度必须介于 1 和 255 之间")
	public String getServletUser() {
		return servletUser;
	}

	public void setServletUser(String servletUser) {
		this.servletUser = servletUser;
	}
	
	@Length(min=1, max=255, message="服务器密码长度必须介于 1 和 255 之间")
	public String getServletPassword() {
		return servletPassword;
	}

	public void setServletPassword(String servletPassword) {
		this.servletPassword = servletPassword;
	}
	
}